package com.tueye.entity.user;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.tueye.entity.BaseEntity;
import com.tueye.entity.Topics;

/**
 * 站内动态
 * 
 * @author hanxiaowei
 * modify by yue 09/2/19
 * 目前tueye站内动态记录用户的形为包括
 * 1.发表作品(1)
 * 2.发表评论(2)
 * 3.上传头像
 * 4.完善个人信息
 * 5.收藏作品
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tueye_blog_dynamictype")
public class UserDynamic extends BaseEntity {
	
	//执行动作的用户
	private User  user;
	/*
	 * 执行动作的类型见类说明
	 */
	private Integer opt_type;
    /**
     * 发表作品与发表评论时对应的作品
     */
	private Topics topic;
	
	public Integer getOpt_type() {
		return opt_type;
	}

	public void setOpt_type(Integer opt_type) {
		this.opt_type = opt_type;
	}

	public Topics getTopic() {
		return topic;
	}

	public void setTopic(Topics topic) {
		this.topic = topic;
	}

	public User  getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}
